version: "3.8"

services:
  pgvector:
    image: ankane/pgvector:latest
    environment:
      POSTGRES_DB: ${PGVECTOR_DB:-postgres}
      POSTGRES_USER: ${PGVECTOR_USER:-postgres}
      POSTGRES_PASSWORD: ${PGVECTOR_PASSWORD:-postgres}
    ports:
      - ${PGVECTOR_PORT:-5432}:5432
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:5432"]
      interval: 10s
      timeout: 5s
      retries: 5